package deng.quartz;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * A Quartz job that just log msg.
 */
public class SimpleJob implements Job
{
	/** A slf4j logger. */
	private static Logger logger = LoggerFactory.getLogger(SimpleJob.class);

	/**
	 * Implements @see org.quartz.Job#execute(org.quartz.JobExecutionContext) method.
	 * @param context
	 * @throws JobExecutionException
	 */
	public void execute(JobExecutionContext context) throws JobExecutionException
	{
		logger.info("Executing job: " + context.getJobDetail());
	}

}
